﻿/*! \file ViewLog.h
*This file declare the class ViewLog used for view the log by using view
*
*/
#ifndef _VIEWLOG__ 
#define _VIEWLOG__
#include "stdafx_logm.h"
#include "LOGMlib_EXPORT.h"

namespace LOGM
{
	class LogSave;
	class DockWidget;
	/**
	* \class Viewlog
	*this class was designed for view the log message with diffrent color.
	*
	*/
	class LOGMlib_EXPORT ViewLog:public QDockWidget
	{
		Q_OBJECT
		
	public:
		explicit ViewLog(QWidget *parent = 0);
		~ViewLog();
				
		public slots:
		
		void UpdateLogData(QtMsgType log_type, const QString &);
		
	private:
		LogSave *data;
		DockWidget *ui;
	};
	
	class LOGMlib_EXPORT DockWidget
	{
	public:		
		QWidget *dockWidgetContents;
		QTextEdit *textEdit;
		QGridLayout *gridLayout;
		void setupUi(QDockWidget *DockWidget);

		void retranslateUi(QDockWidget *DockWidget);
	};
}

#endif